import { createApp } from 'vue'

import './style.css'
import App from './App.vue'
import './assets/style/index.scss'
// 路由
import router from './router'

// 饿了么ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入所有的el-icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


// 请求
import request from './utils/request'
import storage from './utils/storage'

import api from './api/index.js'
import store from './store'


const app = createApp(App)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}





app.config.globalProperties.$request =request;

app.config.globalProperties.$api = api;
app.config.globalProperties.$storage=storage;

console.log("环境变量=>",import.meta.env)

app.use(ElementPlus, { size: 'small', zIndex: 3000 })
app.use(store)
app.use(router)
app.mount('#app')
